package com.tangyuan.oss.controller;

import com.tangyuan.oss.service.FileService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: TangYuan
 * @Date: 2024/6/3 14:30
 * @描述:
 */
@RestController
public class FileController {
    
    @Resource
    private FileService fileService;
    
    @GetMapping("/test/getAllBucket")
    public List<String> allBucket() throws Exception {
        return fileService.getAllBucket();
    }
    
}
